package com.twu.biblioteca;

public class Println {
    public final static String WELCOME = "Welcome to Bangalore Public Library!";
    public final static  String OUTPUT_BOOK_LIST = "Book List:";
    public final static String INPUT_ACCOUNT = "Please input account:";
    public final static String INPUT_PASSWORD = "Please input password:";
    public final static String INVALID_OPTION = "Select a valid option";
    public final static String NO_BORROWER = "no one borrow";
    public final static String SUCCEED_BORROW_BOOK = "Thank you! Enjoy the Goods";
    public final static String SUCCEED_RETURN_BOOK = "Thank you for returning the Goods";
    public final static String FAIL_RETURN_BOOK = "That is not a valid Goods to return";
    public final static String INPUT_CHOOSE_NAME = "Please input the name: ";
    public final static String FAIL_BORROW = "Your choice is not available";
    public final static String BORROW_CATEGORIES = "1.Borrow Book 2.Borrow Movie";


    public static void println(String msg){
        System.out.println(msg);
    }

    public static void chooseFunctionPrintln(boolean isLibririan){
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("Option:");
        for(Action action : Action.values()){
            if(action.isLibririanPermission()==true&&isLibririan==false){
                continue;
            }
            stringBuilder.append(action.getActionIndex()+"."+action.getDisplayValue()+ "  ");
        }
        System.out.println(stringBuilder.toString());
    }

}
